//
//  LyyHomeViewController.swift
//  weibo
//
//  Created by 廖莹颖 on 2016/10/27.
//  Copyright © 2016年 廖莹颖. All rights reserved.
//

import UIKit

class LyyHomeViewController: LyyBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

       
    }
    //显示好友
    @objc fileprivate func showFriends(){
        print(#function)
        let vc = LyyDemoViewController()
        vc.hidesBottomBarWhenPushed = true
        navigationController?.pushViewController(vc, animated: true)
        
    }

    
}
//MARK：-设置界面
extension LyyHomeViewController{
    //重写父类的方法
    override func setupUI(){
        super.setupUI()
        //设置导航栏按钮
        navigationItem.leftBarButtonItem = UIBarButtonItem(title:"好友", style: .plain, target: self, action: #selector(showFriends))
    }
    
    
}
